<?php

class User_Form_Activate extends Zend_Form
{

    public function init()
    {
        // Create a subform to hold all elements
        $form = new Zend_Form_SubForm();

        $name = new Zend_Form_Element_Hidden('activationkey');
        $name->setRequired(true);

        $submit = new Zend_Form_Element_Submit('signup_submit');
        $submit->setLabel('Submit');

        $form->addElements(array($name, $submit));

        // Put all elements into a subform to group them in an array on retrival
        $this->addSubForm($form, 'user');

        $this->setMethod('post')
            ->setAction('/user/activate')
            ->setName('signupform');
    }


}

